#include <iostream>
using namespace std;
int main ()
{int r,c,e,k;
 cin>>k;
 for(int i=1;i<=k;i++)
 {cin>>r>>c>>e;
  if(r>(c-e))  cout<<"do not advertise"<<endl;
  if(r==(c-e)) cout<<"does not matter"<<endl;
  if(r<(c-e))  cout<<"advertise"<<endl;
} 
system("pause");
return 0;
}
